package com.jeasonzhao.web;

import com.jeasonzhao.commons.basic.StringCollection;

public class ClientScriptPackage
{
    private String name=null;
    private StringCollection scripts=null;
    public ClientScriptPackage(String names,String...sources)
    {
        this.name=names;

    }

    public String getName()
    {
        return name;
    }

    public StringCollection getScripts()
    {
        return scripts;
    }

    public ClientScriptPackage add(String...sources)
    {
        if(null==this.scripts)
        {
            this.scripts=new StringCollection();
        }
        this.scripts.add2(sources);
        this.scripts.removeEmptyItems();
        this.scripts.uniqueItems();
        return this;
    }
}
